// 防抖函数
export default function(fn,durtion = 100){
  let timer = null;
  return (...args)=>{
    clearTimeout(timer);
    timer = setTimeout(()=>{
      fn(...args)
    },durtion)
  }
}